package golf;

import golf.Character.CharacterGrade;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import database.DAO;


public class RepairList {
	int no;
	int seq_no;
	String name;
	int basic_durability;
	int curr_durability;
	int repairprice;
	int brepairprice;

	public RepairList(){}
	public RepairList(ResultSet rs){
	
		try {
			setNo( rs.getInt("ITEMNO") );
			setSeq_No(rs.getInt("SEQNO"));
			setName(rs.getString("ITEMNM"));
			setBasic_durability(rs.getInt("ITEMBASICDUR"));
			setCurr_durability(rs.getInt("CURRDUR"));
			setrepairprice(rs.getInt("REPAIRPRICE"));
			setbrepairprice(rs.getInt("ITEMREPAIRPRICE"));
			
	
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public int getSeq_No() {
		return seq_no;
	}
	public void setSeq_No(int seq_no) {
		this.seq_no = seq_no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public int getBasic_durability() {
		return basic_durability;
	}
	public void setBasic_durability(int basic_durability) {
		this.basic_durability = basic_durability;
	}
	public int getCurr_durability() {
		return curr_durability;
	}
	public void setCurr_durability(int curr_durability) {
		this.curr_durability = curr_durability;
	}
	public int getrepairprice() {
		return repairprice;
	}
	public void setrepairprice(int repairprice) {
		this.repairprice = repairprice;
	}
	public int getbrepairprice() {
		return brepairprice;
	}
	public void setbrepairprice(int brepairprice) {
		this.brepairprice = brepairprice;
	}
	
}
